home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 March / macformat-088.iso / Shareware Plus / Internet / NetBook 1.5 / NetBook Manual / NetBook Manual.rsrc / TEXT_132.txt < prev    next >
Encoding:
Text File  |  2000-01-22  |  1.5 KB  |  50 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Instructions on creating your own plug-ins
  9.  
  10. This will describe how to make NetBook understand more file formats. There is also another type of plugin, which deals with adding new protocols.
  11.  
  12. It is quite simple once you understand what is going on.  Open the sample plug-in while viewing these instructions and you will be creating your own plugs in minutes.  
  13.  
  14. NOTE:  make a copy of the sample plugins before changing them in ResEdit or Resourcer, just in case.
  15.  
  16. 1. open ResEdit or Resourcer
  17. 2. copy the resources in the example to a new file
  18. 3. edit the "TRAN" resource using the "TEXT" editor
  19.  
  20. Format:
  21.  
  22. line 1 - Creator of the filetype
  23. line 2 - Type of the filetype
  24. line 3 - an expression that should result in the name of the bookmark
  25. line 4 - an expression that should result in the URL of the bookmark
  26.  
  27. expressions: very simple at the moment, so not very powerful. Should work with most file formats though.
  28.  
  29. meow//whoa
  30.  
  31. ... means that on every line in the file, NB will search for "meow", and take everything between it and "whoa", if found, and return it.
  32.  
  33. so, if URLs are stored in this way in a file...
  34.  
  35. <http://blah.com>
  36.  
  37. then this is how the URL expression should be:
  38.  
  39. <//>
  40.  
  41. ... and since there is no name in that file format, use the same as "name" expression.
  42.  
  43.  
  44. Please send in any plug-ins you make so others may enjoy them also.  Send them via e-mail to  stefan@rincewind.net and be sure to include a note about what software it is for (what it handles) and any information about yourself you would like included with your plug-in.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.